package com.gccloud.design.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gccloud.design.entity.SdRepoParticipantConfEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 实现功能【环节参与人配置持久层】
 *
 * @author hu.hongdou
 * @date 2022/2/21
 */
@Mapper
public interface SdRepoParticipantConfDao extends BaseMapper<SdRepoParticipantConfEntity> {

    /**
     * 基于环节实例标识查询环节参与人列表
     *
     * @param bwpRepoId 环节实例标识
     * @return 环节参与人列表
     */
    @Select("select * from sd_repo_participant_conf where ACTIVITY_REPO_ID = #{bwpRepoId} and del_flag = 0")
    List<SdRepoParticipantConfEntity> getRepoParticipant(String bwpRepoId);
}
